﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;

namespace BUS
{
    public class GaTauBUS
    {
        public DataTable LoadGaTau()
        {
            GaTauDAO GT = new GaTauDAO();
            DataTable dt = new DataTable();
            dt = GT.LoadGaTau();
            return dt;
        }

        public DataTable TimKiemGaTau(GaTauDTO _gatau)
        {
            GaTauDAO GT = new GaTauDAO();
            DataTable dt = new DataTable();
            dt = GT.TimKiemGaTau(_gatau);
            return dt;
        }

        public DataTable kiemtra(GaTauDTO _gatau)
        {
            GaTauDAO GT = new GaTauDAO();
            DataTable dt = new DataTable();
            dt = GT.kiemtra(_gatau);
            return dt;
        }

        public DataTable KiemTraChuyenTau(GaTauDTO _gatau)
        {
            GaTauDAO GT = new GaTauDAO();
            DataTable dt = new DataTable();
            dt = GT.KiemTraChuyenTau(_gatau);
            return dt;
        }

        public void ThemGaTau(GaTauDTO _gatau)
        {
            GaTauDAO GT = new GaTauDAO();
            GT.ThemGaTau(_gatau);
        }

        public void XoaGaTau(GaTauDTO _gatau)
        {
            GaTauDAO GT = new GaTauDAO();
            GT.XoaGaTau(_gatau);
        }

        public DataTable LayThongTinGaTau(GaTauDTO _gatau)
        {
            GaTauDAO GTDAO = new GaTauDAO();
            DataTable dt = new DataTable();
            dt = GTDAO.LayThongTinGaTau(_gatau);
            return dt;
        }

        public void CapNhatGaTau(GaTauDTO _gatau)
        {
            GaTauDAO gtdao = new GaTauDAO();
            gtdao.CapNhatGaTau(_gatau);
        }

        public void CapNhatGaTau1(GaTauDTO _gatau)
        {
            GaTauDAO gtdao = new GaTauDAO();
            gtdao.CapNhatGaTau1(_gatau);
        }

        public void CapNhatGaTau2(GaTauDTO _gatau)
        {
            GaTauDAO gtdao = new GaTauDAO();
            gtdao.CapNhatGaTau2(_gatau);
        }
    }
}
